package com.platform.common.bean;

/**
 * 
 * @author Mo
 * @date 2019/08/14
 */
public class User {
    /**
     * 用户ID
     */
    private Integer id;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 用户电话
     */
    private String mob;

    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 是否有效
     */
    private Integer valid;

    /**
     * 
     */
    private String pticket;

    /**
     * 
     */
    private Integer roleId;

    public User(Integer id, String name, String mob, String email, Integer valid, String pticket, Integer roleId) {
        this.id = id;
        this.name = name;
        this.mob = mob;
        this.email = email;
        this.valid = valid;
        this.pticket = pticket;
        this.roleId = roleId;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMob() {
        return mob;
    }

    public void setMob(String mob) {
        this.mob = mob == null ? null : mob.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public String getPticket() {
        return pticket;
    }

    public void setPticket(String pticket) {
        this.pticket = pticket == null ? null : pticket.trim();
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", mob=").append(mob);
        sb.append(", email=").append(email);
        sb.append(", valid=").append(valid);
        sb.append(", pticket=").append(pticket);
        sb.append(", roleId=").append(roleId);
        sb.append("]");
        return sb.toString();
    }
}